package com.techsoul.module.baoli.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.techsoul.common.core.pojo.vo.UserVo;
import com.techsoul.module.baoli.pojo.param.FinCreditBillSaveParam;
import com.techsoul.module.baoli.pojo.param.FinCreditBillSearchParam;
import com.techsoul.module.baoli.pojo.vo.FinCreditBillVo;

import java.util.List;

/**
 * 企业白条主 Service接口
 * 
 * @author liuen
 * @date 2022-03-28
 */
public interface IFinCreditBillService {

    /**
     * 新增
     * @param params
     * @return
     */
    String insert(FinCreditBillSaveParam params);
    String prove(FinCreditBillSaveParam params);
    String receive(FinCreditBillSaveParam params);
    String platFormprove(FinCreditBillSaveParam params);
     String cashOutProve(FinCreditBillSaveParam params);
    String cashOut(FinCreditBillSaveParam params);
    String paymentConfirm(FinCreditBillSaveParam params);
    /**
     * 删除
     * @param id
     * @return
     */
    Integer delete(String id);

    /**
     * 批量删除
     * @param idList
     */
    Integer batchDelete(List<String> idList);

    /**
     * 修改
     * @param params
     * @return
     */
    Integer update(FinCreditBillSaveParam params);

    /**
     * 详情
     * @param id
     * @return
     */
    FinCreditBillVo findById(String id);

    /**
     * 列表
     * @param params
     * @return
     */
    List<FinCreditBillVo> findAll(FinCreditBillSearchParam params);

    /**
     * 列表-分页
     * @param params
     * @param current
     * @param pageSize
     * @return
     */
    IPage<FinCreditBillVo> findAll(FinCreditBillSearchParam params, Integer current, Integer pageSize);
    Integer findTotalMyBill(UserVo sysuser);
    Integer findTotalMyRejectBill(UserVo sysuser);
}
